// contains constant data about each stage

/*
 Required includes:	math.h
					stdint.h
 */

/*
 Copyright 2010 Anthony Oko, Koby Hitchen, Mara Cairo, Shaochen Xu, Tyler Lucas
 
 This file is part of the trajctrl program.
 
 trajctrl is licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 */

#ifndef STAGEINFO_H
#define STAGEINFO_H

#include <stdint.h>
#include <math.h>

struct stage_QPD {
	uint8_t dist;		// distance from injector
	unsigned int tapprox;	// use (distance/gravity/2)^0.5 for now
	uint8_t chan[4];		// the channels in the order required to read the QPD
	uint8_t amux[4];		// analog multiplexer settings for each reading
};

struct stage_FB {
	uint8_t dist;
	unsigned int tapprox;
	bool isLaser;
};

struct stageinfo_return {
	stage_QPD QPD_arrays[6];
	stage_FB FB_arrays[4];
};

stageinfo_return stageinfo();

#endif
